import request from '@/router/axios';

/**
 * 生成其他标签
 */
export const createSequence = (row) => {
    return request({
        url: '/api/mes-admin/sequence/generation/create/other',
        method: 'post',
        data: row
    });
};

/**
 * 打印条码
 */
export const printSequence = (row) => {
    return request({
        url: '/api/mes-admin/api/print/print/data',
        method: 'post',
        data: row
    });
};
/**
 * 其他条码打印
 */
export const printlabelSequence = (row) => {
    return request({
        url: '/api/mes-admin/api/print/label/print',
        method: 'post',
        data: row
    });
};

/**
 * 查询生成记录
 */
export const getSourceList = (data) => {
    return request({
        url: '/api/mes-admin/sequence/generation/select/other',
        method: 'post',
        data: data
    });
};

/**
 * 查询大类-小类
 */
export const getDicData = (params) => {
    return request({
        url: '/api/blade-system/dict/list',
        method: 'get',
        params: params
    });
};

// 打印测试
export const printTest = (row) => {
    return request({
        url: '/api/mes-admin/api/print/test',
        method: 'post',
        data: row
    });
};

/**
 * 根据仓库获取打印数据
 */
export const getPrintDetailInfoByStorage = (id) => {
    return request({
        url: '/api/mes-product/area/detail/storage/management',
        method: 'get',
        params: { id }
    });
};